# Contributor: prspkt <prspkt@protonmail.com>
# Maintainer: prspkt <prspkt@protonmail.com>
pkgname=py3-blinker
pkgver=1.8.2
pkgrel=0
pkgdesc="Fast, simple object-to-object and broadcast signalling"
url="https://pypi.org/project/blinker"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-flit-core py3-gpep517"
checkdepends="py3-pytest py3-pytest-asyncio"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/b/blinker/blinker-$pkgver.tar.gz"
builddir="$srcdir/blinker-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	python3 -m venv --clear --without-pip --system-site-packages .testenv
	.testenv/bin/python3 -m installer .dist/blinker*.whl
	.testenv/bin/python3 -m pytest
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/blinker*.whl
}

sha512sums="
037822e014974aaa9d6faf76805b09c06d697de9555cf4cd1265e639c52f72c5ed905e4698140b49a5e011806d91541636a7cf58082aabdd927c60dffd7df012  blinker-1.8.2.tar.gz
"
